The liver is the largest organ in the body and is located in the abdominal cavity, and has many functions. One of these functions is the breaking down of any dangerous substances, such as alcohol or other drugs, that appear in the blood. Other functions include the storage of energy as glycogen, the breaking down of old red blood cells, and the production of urea from unwanted protein in the diet.